//
// Created by binny on 2022/6/14.
//

#ifndef NDK_MYTIME_H
#define NDK_MYTIME_H

#include <iostream>

using namespace std;

class Time {
private:
    int hours;
    int minutes;
public:
    Time();

    Time(Time &time);

    Time(int h, int m = 0);

    void addMin(int m);

    void addHr(int h);

    /**
     * 任何不会修改成员变量的函数都应该成名为 const 函数
     * @param t
     * @return
     */
    Time sum(const Time &t) const;

    void show() const;

    void reset(int h = 0, int m = 0);

    ~Time();

};

#endif //NDK_MYTIME_H